package cn.tx.service.Impl;

import cn.tx.dao.DeptDao;
import cn.tx.dao.GradeDao;
import cn.tx.model.Dept;
import cn.tx.model.Grade;
import cn.tx.service.DeptService;
import cn.tx.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    DeptDao deptService;
    @Override
    public Dept findByUserName(String username) {
        return deptService.findByUserName(username);
    }
    @Override
    public Dept findByUser(int userid) {
        return deptService.findByUser(userid);
    }
    @Override
    public int addDept(Dept Dept) {
        return deptService.addDept(Dept);
    }

    @Override
    public List<Dept> findList(Map<String, Object> querymap) {
        return deptService.findList(querymap);
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return deptService.findTotal(querymap);
    }

    @Override
    public int UpdateDeptById(Dept dept) {
        return deptService.UpdateDeptById(dept);
    }

    @Override
    public int delete(String ids) {
        return deptService.delete(ids);
    }

    @Override
    public List<Dept> findAll() {
        return deptService.findAll();
    }
}
